﻿<%@ Page Language="C#" MasterPageFile="~/System/MasterPageTra.master" AutoEventWireup="true" CodeFile="ChooseHosPurchaseListTra.aspx.cs" Inherits="Hospital_ChooseHosPurchaseListTra" 
EnableEventValidation="false" Title="选择采购药品" %>

<%@ Register Src="../System/DbPageFlip1.ascx" TagName="DbPageFlip1" TagPrefix="uc2" %>

<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

<script language="vbscript" src="../Common/yz.vbs" type="text/vbscript"></script>
   <script language="javascript">
    
      //  window.alert("11");
        function SelectAll()
        {
            var i;
             var a = document.getElementsByName('chk');
             for( i = 0;i < a.length;i++)
            {
                a[i].checked = true; 
            }           
        }
        function ClearAll()
        {
            var i;
             var a = document.getElementsByName('chk');
             
             for( i = 0;i < a.length;i++)
            {
                a[i].checked = false; 
            }           
        }
        function CheckOthers()
        {
            var i;
            var a = document.getElementsByName('chk');
             
             for( i = 0;i < a.length;i++)
            {
            
                if(a[i].checked!=true)
                {
                    a[i].checked =true ; 
                }
                else
                {   
                    a[i].checked = false; 
                }
            }           
            
        }
    </script>
        <table width="98%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td style="width: 4px">
                <img src="../images/intro_left.gif" width="4" height="34"></td>
            <td class="intro_wordbg">
                选择采购药品</td>
            <td background="../images/intro_bg.gif">
                <img src="../images/intro_right.jpg" width="118" height="34"/></td>
        </tr>
    </table>
    <table width="98%" border='1'  cellpadding='2' cellspacing='1' id="tabData">
        <tr>  
            <td   align="right">
                通用名：</td>
            <td>
                <asp:TextBox ID="txtProudctName" InvertedComma="通用名"  runat="server" Width="187px"></asp:TextBox></td>
            <td align="right">
                规格：</td>
            <td>
                <asp:TextBox ID="txtOutLookc"  InvertedComma="规格"  runat="server" Width="187px"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right">
                采购目录状态：</td>
            <td>
                <asp:DropDownList ID="DLGoods"  runat="server" Width="187px">
                    <asp:ListItem Selected="True" Value="全部">全部</asp:ListItem>
                    <asp:ListItem Value="原中标商品">竞价限价</asp:ListItem>
                    <asp:ListItem Value="备案采购商品">备案采购</asp:ListItem>
                    <asp:ListItem Value="不限价不竞价商品">不竞不议</asp:ListItem>
                </asp:DropDownList></td>
            <td align="right">
                目录范围：</td>
            <td>
                <asp:DropDownList ID="DLStatus"  runat="server" Width="201px">
                    <asp:ListItem Selected="True" Value="1">目前不在医院采购目录药品</asp:ListItem>
                    <asp:ListItem Value="3">已选择的挂网药品</asp:ListItem>
                    <asp:ListItem Value="2">全部挂网药品</asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td align="right">
                生产企业注册号：</td>
            <td>
                <asp:TextBox ID="txtUserCode_SC"  InvertedComma="生产企业注册号"  runat="server" Width="187px"></asp:TextBox></td>
            <td align="right">
                生产企业名称：</td>
            <td>
                <asp:TextBox ID="txtCompanyName_SC"  InvertedComma="生产企业名称"  runat="server" Width="187px"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right">
                流水号：</td>
            <td>
                <asp:TextBox ID="txtGoodsId"  InvertedComma="流水号"  runat="server" Width="187px"></asp:TextBox></td>
            <td align="right">
                商品名：</td>
            <td>
                <asp:TextBox ID="txtGoodsName"  InvertedComma="商品名"  runat="server" Width="187px"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right">
                投标人名称：</td>
            <td>
                <asp:TextBox ID="txtCompanyName_TB"  InvertedComma="投标人名称"  runat="server" Width="187px"></asp:TextBox></td>
            <td align="right">
                投标人注册号：</td>
            <td>
                <asp:TextBox ID="txtUserCode_TB"  InvertedComma="投标人注册号"  runat="server" Width="187px"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="height: 24px">
                </td>
            <td style="height: 24px">
                <asp:Button ID="ButSelect" runat="server" Text="查 询" CssClass="button_bg" Width="60px" OnClientClick="javascript:return CheckForm()"/></td>
            <td style="height: 24px">
                </td>
            <td style="height: 24px">
                <input id="Submit1" type="submit" value="确定选取" name="PurchaseChoose" class="button_bg4" onclick="javascript:return CheckForm()"
                    style="width: 70px" />
                <asp:Label ID="LBSuccess" runat="server" Text="Label" Width="132px" Visible="False" ForeColor="Red"></asp:Label>&nbsp;</td>
        </tr>
        <tr>
            <td style="height: 24px">
            <input id="but1"  type="button" class="button_bg6" value="全选"  onclick="javascript:SelectAll();" style="width: 92px" /></td>
            <td style="height: 24px">
                <input id="but2" type="button" class="button_bg6" value="清空"  onclick="javascript:ClearAll();" style="width: 90px"/></td>
            <td style="height: 24px">
                <input id="but3" type="button"  class="button_bg6" value="反选"  onclick="javascript:CheckOthers();" style="width: 90px"/></td>
            <td style="height: 24px"><asp:Button ID="ToExcul" runat="server" Text="导出到Excel" CssClass="button_bg4" Width="68px" OnClick="ToExcul_Click" 　/></td>
        </tr>
        <tr>
            <td colspan="4" style="height: 24px">
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="4" style="height: 24px">
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>&nbsp;&nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="4" style="height: 24px">
                <uc1:DbPageFlip ID="DbPageFlip1" runat="server" />
                 <asp:GridView ID="dv" runat="server">
                </asp:GridView>
            </td>
        </tr>
       
    </table>
            <br />
</asp:Content>
